import 'package:fish_redux/fish_redux.dart';
import 'package:json_annotation/json_annotation.dart';

part 'admin_user_info.g.dart';

@JsonSerializable()
class AdminUserInfo extends Cloneable<AdminUserInfo> {
  String id;
  String userName;
  String nickName;
  String password;

  AdminUserInfo({this.id, this.userName, this.nickName, this.password});

  @override
  AdminUserInfo clone() {
    return AdminUserInfo(
      id: id,
      userName: userName,
      nickName: nickName,
      password: password,
    );
  }

  factory AdminUserInfo.fromJson(Map<String, dynamic> json) =>
      _$AdminUserInfoFromJson(json);

  Map<String, dynamic> toJson() => _$AdminUserInfoToJson(this);
}
